
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test_project/module/overlay_test_page/conponents/countries_field.dart';

class OverlayTestPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => _OverlayTestPageState();
}

class _OverlayTestPageState extends State<OverlayTestPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Padding(
        padding: const EdgeInsets.all(50.0),
        child: Form(
          child: ListView(
            children: <Widget>[
              TextFormField(
                decoration: InputDecoration(
                    labelText: 'Address'
                ),
              ),
              SizedBox(height: 16.0,),
              CountriesField(),
              SizedBox(height: 16.0,),
              TextFormField(
                decoration: InputDecoration(
                    labelText: 'Address'
                ),
              ),
              SizedBox(height: 16.0,),
              RaisedButton(
                child: Text('SUBMIT'),
                onPressed: () {
                  // submit the form
                },
              ),
            ],
          ),
        ),
      ),
    );
  }

}